package com.ecoolex.discount.sales.ws;

import java.util.List;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import com.ecoolex.discount.sales.core.manager.YouWorldUserManager;
import com.ecoolex.discount.sales.entity.YouWorldUser;
import com.ecoolex.discount.sales.pojo.AddYouWorldUserDTO;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.framework.common.pojo.Sorting;

@Service
public class YouWorldUserServiceImpl implements YouWorldUserService{
	
	@Autowired
	private YouWorldUserManager manager;

	@Override
	public YouWorldUser get(Integer id) {
		return manager.get(id);
	}

	@Override
	public Pagination<YouWorldUser> query(String phone, Sorting[] sorts, Page page) {
		return manager.query(phone, sorts, page);
	}

	@Override
	public void batchAdd(List<AddYouWorldUserDTO> record, String createUser){
		manager.batchAdd(record, createUser);
	}

	@Override
	public void delete(YouWorldUser record, String updateUser){
		manager.delete(record, updateUser);
	}

}
